<?php 
class OrderController extends Controller{
	public function __init(){

	}

	public function index(){
		if(isset($_SESSION['user'])){
		// 	p($_SESSION['user']);exit;
			$map['uid']=array('IN',$_SESSION['user']['uid']);
			$data=M('address')->where($map)->all();
			// p($data);exit;			
			$this->assgin('data',$data);
			$this->display();			
		}else{
			go('Login/login');
		}
	}

	public function login(){
		$this->display();
	}




}


?>